package com.company.genealogy.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.genealogy.web.vo.MemberAuditVO;
import com.company.genealogy.web.entity.MemberAdditionAudit;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.MapKey;
import java.util.List;
import java.util.Map;

/**
 * @author chenzhixiang
 */
public interface MemberAdditionAuditMapper extends BaseMapper<MemberAdditionAudit> {
    List<MemberAuditVO> pageList(@Param("status") String status, @Param("clanId") Long clanId, @Param("offset") int offset, @Param("limit") int limit);
    int countByStatus(@Param("status") String status, @Param("clanId") Long clanId);
    @MapKey("status")
    Map<String, Integer> stats(@Param("clanId") Long clanId);
}